/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const memberRouter = {
  path: '/member',
  component: Layout,
  redirect: '/member/inspection',
  alwaysShow: true, // will always show the root menu
  name: 'memberInspection',
  meta: {
    title: '人员管理',
    icon: 'lock',
  },
  children: [{
    path: 'inspection',
    component: () =>
      import('@/views/member/inspection/index'),
    name: 'memberInspection',
    meta: {
      title: '文明办督查',
    }
  },{
    path: 'inspection/create',
    component: () =>
      import('@/views/member/inspection/create'),
    name: 'createInspection',
    meta: {
      title: '创建督查员',
    }
  },{
    path: 'inspection/edit/:id(\\d+)',
    component: () =>
      import('@/views/member/inspection/edit'),
    name: 'editInspection',
    meta: {
      title: '编辑督查员',
    }
  },
  {
    path: 'street',
    component: () =>
      import('@/views/member/street/index'),
    name: 'memberStreet',
    meta: {
      title: '街道人员',
    }
  }, {
    path: 'street/create',
    component: () =>
      import('@/views/member/street/create'),
    name: 'createStreet',
    meta: {
      title: '创建街道人员',
    }
  },{
    path: 'street/edit/:id(\\d+)',
    component: () =>
      import('@/views/member/street/edit'),
    name: 'editStreet',
    meta: {
      title: '编辑街道人员',
    }
  },
  
  {
    path: 'department',
    component: () =>
      import('@/views/member/department/index'),
    name: 'memberDepartment',
    meta: {
      title: '部门人员',
    }
  },
   {
    path: 'department/create',
    component: () =>
      import('@/views/member/department/create'),
    name: 'createDepartment',
    meta: {
      title: '创建部门人员',
    }
  },{
    path: 'department/edit/:id(\\d+)',
    component: () =>
      import('@/views/member/department/edit'),
    name: 'editDepartment',
    meta: {
      title: '编辑部门人员',
    }
  },
  
  ]
}

export default memberRouter
